package cn.hh.pet.domain;

import cn.hh.basic.domain.BasicDomain;
import cn.hh.org.domain.Shop;
import cn.hh.user.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class Pet extends BasicDomain{
    private String name;
    private BigDecimal saleprice;
    private String costprice;
    private String resources;
    private Integer state;
    private Integer type_id;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date onsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createtime;
    private Long shop_id;
    private Long user_id;
    private SMM smm;
    private Long search_master_msg_id;
    private PetDetail detail;
    private Shop shop;
    private User user;
    private List<PetType> children =new ArrayList<>();
}
